﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Dycox.Reporting
{
    public sealed class ReportBody : ContainerElement
    {
        internal ReportBody(Report report)
        {
            if (report == null)
                throw new ArgumentNullException("report");

            _report = report;
        }

        Report _report;

        public override Report Report
        {
            get
            {
                return _report;
            }
        }

        protected override void OnParentChanging(ReportElement parent)
        {
            if (parent != null)
                throw new InvalidOperationException("ReportBody cannot have any parent element.");

            base.OnParentChanging(parent);
        }


    }
}
